package epam.lab.spring.parser;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Info of the future Bean object
 * @author Iurii Miedviediev
 * @version 1.0 Build 21.08.2014
 */
public class BeanDefinition {
    private String aClass;
    private Map<String, String> properties;
    private List<String> constructorArgs;

    public BeanDefinition() {
        constructorArgs = new ArrayList<>();
        properties = new LinkedHashMap<>();
    }

    public List<String> getConstructorArgs() {
        return constructorArgs;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public String getaClass() {
        return aClass;
    }

    public void setaClass(String aClass) {
        this.aClass = aClass;
    }

    public void addConstructorArg(String arg) {
        constructorArgs.add(arg);
    }

    public void addProperty(String name, String property) {
        properties.put(name, property);
    }
}
